package com.ruoyi.customer.domain;

import com.ruoyi.common.core.domain.UserEntity;
import com.ruoyi.market.domain.ConfigBase;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 用户统计对象 customer_static
 *
 * @author ruoyi
 */
public class CustomerStatic extends UserEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long userId;

    /** 店铺ID */
    private String shopId;

    /** 充值金额 */
    private BigDecimal rechargeAmount;

    /** 下单金额 */
    private BigDecimal orderAmount;

    /** 打赏金额 */
    private BigDecimal rewardAmount;

    /** 充值金额 */
    private int rechargeCount;

    /** 下单笔数 */
    private int orderCount;

    /** 打赏笔数 */
    private int rewardCount;

    private CustomerUser customerUser;

    /** 所属店铺信息   */
    private ConfigBase shopInfo;

    public CustomerStatic()
    {

    }

    public CustomerStatic(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public String getShopId(){ return shopId; }

    public void setShopId(String shopId){ this.shopId = shopId; }

    public BigDecimal getRechargeAmount(){ return rechargeAmount;}

    public void setRechargeAmount(BigDecimal rechargeAmount){ this.rechargeAmount = rechargeAmount; }

    public BigDecimal getOrderAmount(){ return orderAmount;}

    public void setOrderAmount(BigDecimal orderAmount){ this.orderAmount = orderAmount; }

    public BigDecimal getRewardAmount(){ return rewardAmount;}

    public void setRewardAmount(BigDecimal rewardAmount){ this.rewardAmount = rewardAmount; }

    public int getRechargeCount(){ return rechargeCount;}

    public void setRechargeCount(int rechargeCount){ this.rechargeCount = rechargeCount; }

    public int getOrderCount(){ return orderCount;}

    public void setOrderCount(int orderCount){ this.orderCount = orderCount; }

    public int getRewardCount(){ return rewardCount;}

    public void setRewardCount(int rewardCount){ this.rewardCount = rewardCount; }

    public CustomerUser getCustomerUser()
    {
        return customerUser;
    }

    public void setCustomerUser(CustomerUser customerUser)
    {
        this.customerUser = customerUser;
    }

    public ConfigBase getShopInfo()
    {
        return shopInfo;
    }

    public void setShopInfo(ConfigBase shopInfo)
    {
        this.shopInfo = shopInfo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("userId", getUserId())
                .append("shopId", getShopId())
                .append("rechargeCount", getRechargeCount())
                .append("orderCount", getOrderCount())
                .append("rewardCount", getRewardCount())
                .append("rechargeAmount", getRechargeAmount())
                .append("rewardAmount", getRewardAmount())
                .append("orderAmount", getOrderAmount())
                .append("customerUser", getCustomerUser())
                .append("shopInfo", getShopInfo())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
